package com.liveneo.adapter.webservice.server.claim.service;

import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
import javax.xml.ws.WebEndpoint;
import javax.xml.ws.WebServiceClient;
import javax.xml.ws.WebServiceFeature;
import com.liveneo.adapter.mobile.util.SysConst;
import com.liveneo.adapter.mobile.util.UserException;
import com.liveneo.adapter.webservice.server.claim.Exception_Exception;

/**
 * This class was generated by Apache CXF 3.0.5
 * 2015-08-06T13:43:40.028+08:00
 * Generated source version: 3.0.5
 * 
 */
@WebServiceClient(name = "Claim2VsServiceService", wsdlLocation = "http://10.100.135.169:8008/cxfServices/Claim2vs?wsdl",
        targetNamespace = "http://videoSurvey.provider.webservice.interact.application.sinosoft.com/")
public class Claim2VsServiceService extends Service {
    public final static URL   WSDL_LOCATION;
    public final static QName SERVICE             = new QName("http://videoSurvey.provider.webservice.interact.application.sinosoft.com/",
                                                          "Claim2VsServiceService");
    public final static QName Claim2VsServicePort = new QName("http://videoSurvey.provider.webservice.interact.application.sinosoft.com/",
                                                          "Claim2VsServicePort");
    static {
        URL url = null;
        try {
            url = new URL(SysConst.getProperty("CLAIM_WEBSERVICE_URL"));
        } catch (MalformedURLException e) {
            e.printStackTrace();
        } catch (UserException e) {
            e.printStackTrace();
        }
        WSDL_LOCATION = url;
    }

    public Claim2VsServiceService(URL wsdlLocation) {
        super(wsdlLocation, SERVICE);
    }

    public Claim2VsServiceService(URL wsdlLocation, QName serviceName) {
        super(wsdlLocation, serviceName);
    }

    public Claim2VsServiceService() {
        super(WSDL_LOCATION, SERVICE);
    }

    /**
     *
     * @return
     *     returns Claim2VsFacade
     */
    @WebEndpoint(name = "Claim2VsServicePort")
    public Claim2VsFacade getClaim2VsServicePort() {
        return super.getPort(Claim2VsServicePort, Claim2VsFacade.class);
    }

    /**
     * 
     * @param features
     *     A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy.  Supported features not in the <code>features</code> parameter will have their default values.
     * @return
     *     returns Claim2VsFacade
     */
    @WebEndpoint(name = "Claim2VsServicePort")
    public Claim2VsFacade getClaim2VsServicePort(WebServiceFeature... features) {
        return super.getPort(Claim2VsServicePort, Claim2VsFacade.class, features);
    }

    /**
     * @Description: 主测试方法
     * @param args 
     * @ReturnType:void
     * @exception 
     * @Since:2015-8-6 下午01:53:09
     * @Author:YJX
    */
    public static void main(String[] args) {
        Claim2VsServiceService claim2VsServiceService = new Claim2VsServiceService();
        try {
            claim2VsServiceService.getClaim2VsServicePort().applyDelegate(null);
        } catch (Exception_Exception e) {
            e.printStackTrace();
        }
    }
}
